<?php
	$content_xml .= '<office:body>
		<office:text>
			<text:sequence-decls>
				<text:sequence-decl text:display-outline-level="0"
					text:name="Illustration" />
				<text:sequence-decl text:display-outline-level="0"
					text:name="Table" />
				<text:sequence-decl text:display-outline-level="0"
					text:name="Text" />
				<text:sequence-decl text:display-outline-level="0"
					text:name="Drawing" />
			</text:sequence-decls>
			<text:p text:style-name="P3">' . htmlspecialchars($client->nume) . '</text:p>
			<text:p text:style-name="P3" />
			<table:table table:name="Table1"
				table:style-name="Table1">
				<table:table-column table:style-name="Table1.A" />
				<table:table-column table:style-name="Table1.B" />
				<table:table-column table:style-name="Table1.C" />
				<table:table-column table:style-name="Table1.D" />
				<table:table-row>
					<table:table-cell table:style-name="Table1.A1"
						office:value-type="string">
						<text:p text:style-name="P8">
							<text:bookmark-start text:name="DDE_LINK" />
							' . LANG_Furnizor . '
							<text:bookmark-end text:name="DDE_LINK" />
						</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A1"
						office:value-type="string">
						<text:p text:style-name="P8">' . htmlspecialchars($client->nume) . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A1"
						office:value-type="string">
						<text:p text:style-name="P8">' . LANG_Cumparator . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.D1"
						office:value-type="string">
						<text:p text:style-name="P8">' . htmlspecialchars($firma->nume) . '</text:p>
					</table:table-cell>
				</table:table-row>
				<table:table-row>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">
							' . LANG_CF . '
						</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . htmlspecialchars($client->cf) . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">
							' . LANG_CF . '
						</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.D2"
						office:value-type="string">
						<text:p text:style-name="P8">' . htmlspecialchars($firma->cf) . '</text:p>
					</table:table-cell>
				</table:table-row>
				<table:table-row>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P9">
							' . LANG_RC . '
						</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . htmlspecialchars($client->rc) . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P9">
							' . LANG_RC . '
						</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.D2"
						office:value-type="string">
						<text:p text:style-name="P8">' . htmlspecialchars($firma->rc) . '</text:p>
					</table:table-cell>
				</table:table-row>
				<table:table-row>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . LANG_Sediu . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . getAdresaAsString($client->adresa) . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . LANG_Sediu . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.D2"
						office:value-type="string">
						<text:p text:style-name="P8">' . getAdresaAsString($firma->adresa) . '</text:p>
					</table:table-cell>
				</table:table-row>
				<table:table-row>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P9">
							' . LANG_CONT . '
						</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . htmlspecialchars($contClient) . ' ' . $currencies[$monedaClient] . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . LANG_CONT . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.D2"
						office:value-type="string">
						<text:p text:style-name="P8">' . htmlspecialchars($contFirma) . ' ' . $currencies[$monedaFirma] . '</text:p>
					</table:table-cell>
				</table:table-row>
				<table:table-row>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . LANG_BANCA . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . htmlspecialchars($bancaClient) . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . LANG_BANCA . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.D2"
						office:value-type="string">
						<text:p text:style-name="P8">' . htmlspecialchars($bancaFirma) . '</text:p>
					</table:table-cell>
				</table:table-row>
				<table:table-row>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . LANG_TELEFON . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . htmlspecialchars($client->tel_fix) . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8" />
					</table:table-cell>
					<table:table-cell table:style-name="Table1.D2"
						office:value-type="string">
						<text:p text:style-name="P8" />
					</table:table-cell>
				</table:table-row>
				<table:table-row>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . LANG_Cota_TVA . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8">' . htmlspecialchars($tva) . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table1.A2"
						office:value-type="string">
						<text:p text:style-name="P8" />
					</table:table-cell>
					<table:table-cell table:style-name="Table1.D2"
						office:value-type="string">
						<text:p text:style-name="P8" />
					</table:table-cell>
				</table:table-row>
			</table:table>
			<text:p text:style-name="P4" />
			<text:p text:style-name="P3">' . LANG_Factura . '</text:p>
			<text:p text:style-name="P6">' . LANG_Seria . ' : ' . htmlspecialchars($serie_factura) . '</text:p>
			<text:p text:style-name="P7">' . LANG_DATA . ' : ' . htmlspecialchars(getDateForUser($data)) . '</text:p>
			<text:p text:style-name="P5" />
			<table:table table:name="Table2"
				table:style-name="Table2">
				<table:table-column table:style-name="Table2.A" />
				<table:table-column table:style-name="Table2.B" />
				<table:table-column table:style-name="Table2.C" />
				<table:table-column table:style-name="Table2.D" />
				<table:table-column table:style-name="Table2.E" />
				<table:table-column table:style-name="Table2.F" />
				<table:table-column table:style-name="Table2.G" />
				<table:table-column table:style-name="Table2.H" />
				<table:table-row>
					<table:table-cell table:style-name="Table2.A1"
						office:value-type="string">
						<text:p text:style-name="P10">' . LANG_NR_CRT . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.A1"
						table:number-columns-spanned="2" office:value-type="string">
						<text:p text:style-name="P10">
							' . LANG_Denumirea_serviciilor . '
						</text:p>
					</table:table-cell>
					<table:covered-table-cell />
					<table:table-cell table:style-name="Table2.A1"
						office:value-type="string">
						<text:p text:style-name="P10">' . LANG_Unitatea_de_masura . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.A1"
						office:value-type="string">
						<text:p text:style-name="P10">' . LANG_Cantitatea . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.A1"
						office:value-type="string">
						<text:p text:style-name="P10">
							' . LANG_Pret_Unitar . '
						</text:p>
						<text:p text:style-name="P10">
							' . LANG_fara_TVA . '
						</text:p>
						<text:p text:style-name="P10">' . $currencies[$moneda] . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.A1"
						office:value-type="string">
						<text:p text:style-name="P10">' . LANG_Valoarea . ' </text:p>
						<text:p text:style-name="P10">' . $currencies[$moneda] . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.H1"
						office:value-type="string">
						<text:p text:style-name="P10">
							' . LANG_Valoare_TVA . '
						</text:p>
						<text:p text:style-name="P10">' . $currencies[$moneda] . '</text:p>
						<text:p text:style-name="P10" />
					</table:table-cell>
				</table:table-row>
				<table:table-row>
					<table:table-cell table:style-name="Table2.A2"
						office:value-type="float" office:value="0">
						<text:p text:style-name="P10">0</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.A2"
						table:number-columns-spanned="2" office:value-type="float"
						office:value="1">
						<text:p text:style-name="P10">1</text:p>
					</table:table-cell>
					<table:covered-table-cell />
					<table:table-cell table:style-name="Table2.A2"
						office:value-type="float" office:value="2">
						<text:p text:style-name="P10">2</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.A2"
						office:value-type="float" office:value="3">
						<text:p text:style-name="P10">3</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.A2"
						office:value-type="float" office:value="4">
						<text:p text:style-name="P10">4</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.G2"
						office:value-type="string">
						<text:p text:style-name="P10">5 (3 x 4)</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.H2"
						office:value-type="float" office:value="6">
						<text:p text:style-name="P10">6</text:p>
					</table:table-cell>
				</table:table-row>
				<table:table-row>
					<table:table-cell table:style-name="Table2.A2"
						office:value-type="float" office:value="1">
						<text:p text:style-name="P10">1</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.G2"
						table:number-columns-spanned="2" office:value-type="string">
						<text:p text:style-name="P10">' . htmlspecialchars($text_factura) . '</text:p>
					</table:table-cell>
					<table:covered-table-cell />
					<table:table-cell table:style-name="Table2.G2"
						office:value-type="string">
						<text:p text:style-name="P10">' . LANG_Bucata . ' </text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.G2"
						office:value-type="string">
						<text:p text:style-name="P12">1</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.G2"
						office:value-type="string">
						<text:p text:style-name="P12">' . prepareFloatForUser($suma_fara_tva) . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.G2"
						office:value-type="string">
						<text:p text:style-name="P12">' . prepareFloatForUser($suma_cu_tva) . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.H3"
						office:value-type="string">
						<text:p text:style-name="P12">' . prepareFloatForUser($suma_cu_tva - $suma_fara_tva) . '</text:p>
					</table:table-cell>
				</table:table-row>
				<table:table-row>
					<table:table-cell table:style-name="Table2.H3"
						table:number-columns-spanned="8" office:value-type="string">
						<text:p text:style-name="P11">
							' . LANG_Termenul_de_plata_este . ' ' . $comanda->zile_scadenta_sol . ' ' . LANG_zile . '
						</text:p>
					</table:table-cell>
					<table:covered-table-cell />
					<table:covered-table-cell />
					<table:covered-table-cell />
					<table:covered-table-cell />
					<table:covered-table-cell />
					<table:covered-table-cell />
					<table:covered-table-cell />
				</table:table-row>
				<table:table-row table:style-name="Table2.5">
					<table:table-cell table:style-name="Table2.G2"
						table:number-rows-spanned="2" table:number-columns-spanned="2"
						office:value-type="string">
						<text:p text:style-name="P11">
							' . LANG_Semnatura_si_stampila_furnizorului . '
						</text:p>
						<text:p text:style-name="P11" />
						<text:p text:style-name="P11" />
						<text:p text:style-name="P11" />
						<text:p text:style-name="P11" />
						<text:p text:style-name="P11" />
						<text:p text:style-name="P11" />
						<text:p text:style-name="P11" />
						<text:p text:style-name="P11">
							' . LANG_NUME . ': ' . htmlspecialchars($client->factura_nume) . htmlspecialchars($client->nume) . '
						</text:p>
						<text:p text:style-name="P11">' . LANG_Serie_CI . ': ' . htmlspecialchars($client->factura_serie_ci) . '</text:p>
						<text:p text:style-name="P11">
							' . LANG_CNP . ': ' . htmlspecialchars($client->factura_cnp) . '
						</text:p>
					</table:table-cell>
					<table:covered-table-cell />
					<table:table-cell table:style-name="Table2.G2"
						table:number-rows-spanned="2" table:number-columns-spanned="3"
						office:value-type="string">
						<text:p text:style-name="P11">
							Date privind expeditia
						</text:p>
						<text:p text:style-name="P11" />
						<text:p text:style-name="P11">
							' . LANG_Nume_delegat . '
						</text:p>
						<text:p text:style-name="P11">
							' . htmlspecialchars($nume_delegat) . '
						</text:p>
						<text:p text:style-name="P11">' . LANG_Serie_CI . '</text:p>
						<text:p text:style-name="P11">' . htmlspecialchars($serie_ci) . '</text:p>
						<text:p text:style-name="P11">' . LANG_CNP . '</text:p>
						<text:p text:style-name="P11">
							' . htmlspecialchars($cnp) . '
						</text:p>
						<text:p text:style-name="P11" />
						<text:p text:style-name="P11">
							' . LANG_Mijloc_transport . '
						</text:p>
						<text:p text:style-name="P11">' . htmlspecialchars($mijloc_transport) .'</text:p>
					</table:table-cell>
					<table:covered-table-cell />
					<table:covered-table-cell />
					<table:table-cell table:style-name="Table2.G2"
						office:value-type="string">
						<text:p text:style-name="P11" />
						<text:p text:style-name="P11" />
						<text:p text:style-name="P14">' . LANG_TOTAL . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.G2"
						office:value-type="string">
						<text:p text:style-name="P11" />
						<text:p text:style-name="P11" />
						<text:p text:style-name="P12">' . prepareFloatForUser($suma_cu_tva) . '</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.H3"
						office:value-type="string">
						<text:p text:style-name="P11" />
						<text:p text:style-name="P11" />
						<text:p text:style-name="P12">' . prepareFloatForUser($suma_cu_tva - $suma_fara_tva) . '</text:p>
					</table:table-cell>
				</table:table-row>
				<table:table-row>
					<table:covered-table-cell />
					<table:covered-table-cell />
					<table:covered-table-cell />
					<table:covered-table-cell />
					<table:covered-table-cell />
					<table:table-cell table:style-name="Table2.G2"
						office:value-type="string">
						<text:p text:style-name="P11">
							' . LANG_Semnatura_primire . '
						</text:p>
					</table:table-cell>
					<table:table-cell table:style-name="Table2.H3"
						table:number-columns-spanned="2" office:value-type="string">
						<text:p text:style-name="P13">
							' . LANG_Total_de_plata . '
						</text:p>
						<text:p text:style-name="P10">
							(col. 5 + col. 6)
						</text:p>
						<text:p text:style-name="P11" />
						<text:p text:style-name="P12">' . prepareFloatForUser($suma_cu_tva) . '</text:p>
					</table:table-cell>
					<table:covered-table-cell />
				</table:table-row>
			</table:table>
			<text:p text:style-name="P5" />
		</office:text>
	</office:body>
</office:document-content>';
?>			